package com.wuyou.dynamic.controller;

import com.wuyou.dynamic.service.StatementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * StatementController
 *
 * @Date 2025-11-06 15:08
 * @Author 无忧
 */
@RestController
public class StatementController {

    private StatementService statementService;

    @Autowired
    public void setStatementService(StatementService statementService) {
        this.statementService = statementService;
    }

    @GetMapping("/get/{id}")
    public Object getById(@PathVariable("id") Long id){
        return statementService.getById(id);
    }
    @GetMapping("/get1/{id}")
    public Object getById1(@PathVariable("id") Long id){
        return statementService.getById1(id);
    }
}
